/**
 * 血糖统计数据Mock
 */
export default {
  // 日统计
  day: {
    average: 6.5,
    max: 7.5,
    min: 5.5,
    count: 3,
    abnormal: 1, // 异常值数量
    distribution: [
      { time: '00:00', value: 0 },
      { time: '03:00', value: 0 },
      { time: '06:00', value: 5.5 },
      { time: '09:00', value: 0 },
      { time: '12:00', value: 7.5 },
      { time: '15:00', value: 0 },
      { time: '18:00', value: 6.5 },
      { time: '21:00', value: 0 }
    ]
  },
  
  // 周统计
  week: {
    average: 6.3,
    max: 7.5,
    min: 5.5,
    count: 15,
    abnormal: 3, // 异常值数量
    trend: [
      { date: '周一', average: 6.1 },
      { date: '周二', average: 6.2 },
      { date: '周三', average: 6.3 },
      { date: '周四', average: 6.0 },
      { date: '周五', average: 6.4 },
      { date: '周六', average: 6.5 },
      { date: '周日', average: 6.7 }
    ],
    typeDistribution: [
      { type: '空腹', average: 5.7 },
      { type: '早餐后', average: 6.7 },
      { type: '午餐前', average: 6.2 },
      { type: '午餐后', average: 7.0 },
      { type: '晚餐前', average: 6.1 },
      { type: '晚餐后', average: 6.5 },
      { type: '睡前', average: 6.0 }
    ]
  },
  
  // 月统计
  month: {
    average: 6.4,
    max: 8.2,
    min: 5.3,
    count: 62,
    abnormal: 12, // 异常值数量
    trend: [
      { date: '第1周', average: 6.2 },
      { date: '第2周', average: 6.3 },
      { date: '第3周', average: 6.5 },
      { date: '第4周', average: 6.5 }
    ],
    abnormalDistribution: [
      { type: '低血糖', count: 2 },
      { type: '正常值', count: 50 },
      { type: '偏高值', count: 7 },
      { type: '高血糖', count: 3 }
    ]
  },
  
  // 年统计
  year: {
    average: 6.5,
    max: 9.1,
    min: 4.8,
    count: 732,
    abnormal: 145, // 异常值数量
    trend: [
      { month: '1月', average: 6.7 },
      { month: '2月', average: 6.8 },
      { month: '3月', average: 6.6 },
      { month: '4月', average: 6.5 },
      { month: '5月', average: 6.4 },
      { month: '6月', average: 6.3 },
      { month: '7月', average: 0 },
      { month: '8月', average: 0 },
      { month: '9月', average: 0 },
      { month: '10月', average: 0 },
      { month: '11月', average: 0 },
      { month: '12月', average: 0 }
    ]
  }
} 